package com.shiwaixiangcun.monitor.service;

import com.shiwaixiangcun.core.plugin.dto.MonkeyDto;
import com.shiwaixiangcun.core.service.BaseService;
import com.shiwaixiangcun.monitor.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface UserService extends BaseService<User, Long> {
    void addUser(MonkeyDto monkeyDto);

    void updateUser(MonkeyDto monkeyDto);

    Page<User> getStaffList(Pageable pageable, String search);

    void updateStatus(Long staffId);

    User findByName(String username);

    User findByPhone(String phone);

    Page<User> getStaffObjectList(Pageable pageable, String search);

    void passwordModify(String oldPassword, String newPassword);
}
